<?php
	/*
	 * 百合网自动注册脚本
	 * 
	 */
	include_once dirname(dirname(__FILE__))."/include/common.inc.php";
	include_once dirname(dirname(__FILE__))."/youyuan/function.youyuan.php";
	$global_site = "youyuan";
	
	//自动注册百合网id
	$new_youyuan_id = registerYouyuanId();
	
	if ($new_youyuan_id) {
		printlog("success!! -- register youyuan id success, new id : $new_youyuan_id", "register");
		//自动保存新注册的id
		if(saveYouyuanId($new_youyuan_id)){
			printlog("success!! -- id $new_youyuan_id saved into table success", "register");
		}
		else{
			printlog("fail!! -- id $new_youyuan_id saved into table error", "register");
		}
	}
	else{
		printlog("fail!! -- register youyuan id error ... ", "register");
	}
	

?>